<?php
/**
 * TinyMVC - init.php file
 *
 * This is a startup file for TinyMVC framework, it should be included in project's
 * {@link index.php} file, just after {@link TINYMVC_PROJECT_PATH} is defined, for example:
 *
 * <code>
 * <?php
 *  define('TINYMVC_PROJECT_PATH', realpath(dirname(__FILE__) . '/../'));
 *  require_once('../../tinymvc/init.php');
 * ?>
 * </code>
 *
 * You probably no need to change anything in here, unless you know what you're doing.
 *
 * @author Adrian Wieczorek <adi(at)tinymvc(dot)org>
 * @package TinyMVC
 * @version $Id: init.php 5 2007-09-11 14:09:48Z adi3ek $
 *
 */

/**#@+
 * Constants
	*/
/**
 * TinyMVC Framework version
 */
define('TINYMVC_VERSION', '0.9 beta');
/**
 * full path to TinyMVC Framework directory. That constant *must* be defined properly to keep framework running
 */
define('TINYMVC_PATH', realpath(dirname(__FILE__)));
/**
 * full path to project's model folder
 */
define('TINYMVC_PROJECT_MODEL_PATH', TINYMVC_PROJECT_PATH . '/app/model');
/**
 * full path to project's views folder
 */
define('TINYMVC_PROJECT_VIEWS_PATH', TINYMVC_PROJECT_PATH . '/app/views');
/**
 * full path to project's controllers folder
 */
define('TINYMVC_PROJECT_CONTROLLERS_PATH', TINYMVC_PROJECT_PATH . '/app/controllers');
/**
 * full path to project's config folder
 */
define('TINYMVC_PROJECT_CONFIG_PATH', TINYMVC_PROJECT_PATH . '/app/conf');
/**#@-*/

/**
 * __autoload() function file
 */
require(TINYMVC_PATH . '/lib/autoload.function.php');

/**
 * C'mon baby, I wanna see my framework up and runnin' !
 */
TinyMVC::getInstance()->addIncludePath(TINYMVC_PATH . '/lib');
TinyMVC::getInstance()->addIncludePath(TINYMVC_PROJECT_MODEL_PATH);
